]> dgit.raspbian.org Git - gnome-shell.git/commit
util: Use (thread-safe) uselocale()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Sep 2018 01:17:20 +0000 (03:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 30 Jan 2019 19:35:04 +0000 (20:35 +0100)
commitf4a64f77f2565eb5895e9245a67f96f4b3a226e0
tree7d9a051bbaa06c68702aa823fe9d3a95b5e4d447
parente92477a7520dc45d8177472f0212dc27e70ab751
util: Use (thread-safe) uselocale()

Our helper method to translate a string according to the LC_TIME
setting uses the no-thread-safe setlocale(). While that's not an
issue in practice given that all JS code shares a single thread,
I was pointed to a better alternative when adopting the same
handling in gnome-desktop's wallclock[0].

[0] https://gitlab.gnome.org/GNOME/gnome-desktop/merge_requests/17

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/292
src/shell-util.c